package com.code260.ss.guice.demo.bill;

import javax.inject.Inject;

public class TestCustomAnnotationBillingService implements BillingService {

    private TransactionLog transactionLog;

    private CreditCardProcessor creditCardProcessor;

    @Inject
    public TestCustomAnnotationBillingService(TransactionLog transactionLog, CreditCardProcessor creditCardProcessor) {
        this.transactionLog = transactionLog;
        this.creditCardProcessor = creditCardProcessor;
    }

    public void chargeOrder(PizzaOrder order, CreditCard creditCard) {
        System.out.println(transactionLog.getClass());
        System.out.println(creditCardProcessor.getClass());
    }
}
